package com.efuture.chapterone

/* @Description: Nothing 函数特点
 * @Auther: zhaoshanshan
 * @Date: 2022/03/04/3:36 下午
 */

fun main() {
    show(-1)
}

private fun show (score:Int){
    when (score){
        in 0..59-> println("不及格")
        in 60..80-> println("良好")
        in 80..100-> println("优秀")
        else->{
            TODO()//TODO()函数 返回Nothing 抛出异常 终止程序
        }
    }
}
    